import request from '@/utils/request'


const api_name = `/emp`

export default{
    //查找所有员工
    getAllEmp(){
        return request({
            url:`${api_name}/getAllEmp`,
            method:'get'
        })
    },
    pageList(query){
        return request({
            url:`${api_name}`,
            method:'post',
            data:query
        })
    },
    saveEmp(emp){
        return request({
            url:`${api_name}/insertOrUpdate`,
            method:'post',
            data:emp
        })
    }
}